#include <stdio.h>

#include <pthread.h>

void *do_thread(void *arg) {
    int num = * (int *)arg;

    printf("num is %d\n", num);
    printf("thread start .\n");
    pthread_exit(NULL);
}

int main(int argc, char const *argv[])
{
    pthread_t tid ;
    int num = 100;
    int ret = pthread_create(&tid, NULL, do_thread, &num);
    pthread_join(tid, NULL);
    return 0;
}
